#pragma once
#include <qgraphicsitem.h>

#include "CalculationEngine/AbsIoNode.h"

class PortItem : public QGraphicsTextItem
{
public:
    enum
    {
        Type = UserType + 16
    };
    PortItem(AbsIoNode* node, QGraphicsItem* parent = nullptr);
    ~PortItem();

    int type() const override { return Type; }
    int id();
    void setNode(AbsIoNode* node);
    AbsIoNode* node();

private:
    AbsIoNode* m_node;
};
